/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.org.waff;

/**
 *
 * @author greg
 */
public class Event {
    
    public static final int PROCESSED=1;
    public static final int CREATED =0;
    public static final int ERROR=-1;
    
    private Object source;
    private String command;
    private int state;
    private String message;
    
    public Event(Object source, String command){
        state=CREATED;
        this.source=source;
        this.command=command;
        message="";
    }

    /**
     * @return the source
     */
    public Object getSource() {
        return source;
    }

    /**
     * @param source the source to set
     */
    public void setSource(Object source) {
        this.source = source;
    }

    /**
     * @return the command
     */
    public String getCommand() {
        return command;
    }

    /**
     * @param command the command to set
     */
    public void setCommand(String command) {
        this.command = command;
    }

    /**
     * @return the state
     */
    public int getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(int state) {
        this.state = state;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }
    
}
